#ifndef PALETTE_H
#define PALETTE_H

#ifndef GENESIS_DATATYPES
#define GENESIS_DATATYPES
typedef unsigned char byte;
typedef unsigned short word;
#endif

#define palid_Sonic 3

void palToCRAM();

void PalLoad1(word);
void PalLoad2(word);
long palColor2RGB(word color);

void PaletteNoFade();
void PaletteFadeIn();
void PalFadeIn_Alt();
void FadeIn_FromBlack();
void FadeIn_AddColour(word *&dest, word *&src);


void PaletteCycle();
void PCycle_GHZ();

struct palette
{
       word color[16];
};
struct layerpalette
{
      palette line[4];
};

#endif
/*; Colours
cBlack:		equ $000		; colour black
cWhite:		equ $EEE		; colour white
cBlue:		equ $E00		; colour blue
cGreen:		equ $0E0		; colour green
cRed:		equ $00E		; colour red
cYellow:	equ cGreen+cRed		; colour yellow
cAqua:		equ cGreen+cBlue	; colour aqua
cMagenta:	equ cBlue+cRed		; colour magenta*/
